package com.leo.erp.service;

import javax.servlet.http.HttpServletRequest;

import com.leo.erp.dto.PersonExecution;
import com.leo.erp.util.GlobalRuntimeException;

public interface PersonService {
	
	/**
	 * 分页查询信息
	 * @param name
	 * @param type
	 * @param currentPage
	 * @param pageSize
	 * @return
	 */
	PersonExecution getList(String name, String type, int currentPage, int pageSize);
	
	/**
	 * 修改经手人信息
	 * @param beanJson
	 * @param personId
	 * @param request
	 * @return
	 */
	PersonExecution updatePerson(String beanJson, int personId, HttpServletRequest request);
	
	/**
	 * 插入经手人信息
	 * @param beanJson
	 * @param request
	 * @return
	 */
	PersonExecution insertPerson(String beanJson, HttpServletRequest request) throws GlobalRuntimeException;
	
	/**
	 * 正常删除，要考虑数据完整性，进行完整性校验
	 * @param ids
	 * @return
	 */
	PersonExecution batchDeletePersonByIdsNormal(String ids);
	int batchDeleteSupplierByIds(String ids);
	
	/**
	 * 根据类型获取信息列表
	 * @param type
	 * @return
	 */
	PersonExecution getPersonByType(String type);
}
